package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.ProductSizeDao;
import com.ouheng.shop.domain.ProductSizeDO;
import com.ouheng.shop.service.ProductSizeService;



@Service
public class ProductSizeServiceImpl implements ProductSizeService {
	@Autowired
	private ProductSizeDao productSizeDao;
	
	@Override
	public ProductSizeDO get(Long id){
		return productSizeDao.get(id);
	}
	
	@Override
	public List<ProductSizeDO> list(Map<String, Object> map){
		return productSizeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return productSizeDao.count(map);
	}
	
	@Override
	public int save(ProductSizeDO productSize){
		return productSizeDao.save(productSize);
	}
	
	@Override
	public int update(ProductSizeDO productSize){
		return productSizeDao.update(productSize);
	}
	
	@Override
	public int remove(Long id){
		return productSizeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return productSizeDao.batchRemove(ids);
	}
	
}
